import { defHttp } from "@/utils/http";

// ERP 药物相互作用分组API
export const drugInteractionGrpApi = {
	// 获得药物相互作用分组分页
	drugInteractionGrpList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-interaction-grp/page`, params });
	},
	// 新增药物相互作用分组
	drugInteractionGrpCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-interaction-grp/create`, data });
	},

	// 修改药物相互作用分组
	drugInteractionGrpUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-interaction-grp/update`, data });
	},

	// 删除药物相互作用分组
	drugInteractionGrpDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-interaction-grp/delete?id=` + id });
	}
};
